home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 1 / QRZ Ham Radio Callsign Database - December 1993.iso / ucsd / packet / tcpip / net / netamsrc.arc / files.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-02-12  |  2.8 KB  |  70 lines

  1. /* System-dependent definitions of various files, spool directories, etc */
  2. #include "global.h"
  3. #if    (defined(LATTICE) || defined(MAC))
  4. /* These compilers require special open modes when reading binary files
  5.  * 
  6.  * "The single most brilliant design decision in all of UNIX was the
  7.  * choice of a SINGLE character as the end-of-line indicator" -- M. O'Dell
  8.  *
  9.  * "Whoever picked the end-of-line conventions for MS-DOS and the Macintosh
  10.  * should be shot!" -- P. Karn's corollary to O'Dells' declaration
  11.  *
  12.  * Index definitions for this array are in global.h
  13.  */
  14. char *binmode[] = {
  15.     "rb",    /* Read binary */
  16.     "wb"    /* Write binary */
  17. };
  18. #else
  19. /* fopen modes for binary files under Aztec -- same as UNIX */
  20. char *binmode[] = {
  21.     "r",    /* Read */
  22.     "w"    /* Write */
  23. };
  24. #endif
  25.  
  26. #ifdef    MSDOS
  27. char startup[] = "/autoexec.net";    /* Initialization file */
  28. char userfile[] = "/ftpusers";    /* Authorized FTP users and passwords */
  29. char hosts[] = "/hosts.net";    /* Network host table */
  30. char mailspool[] = "/spool/mail";    /* Incoming mail */
  31. char mailqdir[] = "/spool/mqueue";        /* Outgoing mail spool */
  32. char mailqueue[] = "/spool/mqueue/*.wrk";    /* Outgoing mail work files */
  33. char routeqdir[] = "/spool/rqueue";        /* queue for router */
  34. #endif
  35.  
  36. #ifdef    UNIX
  37. char startup[] = "./startup.net";    /* Initialization file */
  38. char config[] = "./config.net";    /* Device configuration list */
  39. char userfile[] = "./ftpusers";
  40. char hosts[] = "./hosts.net";
  41. char mailspool[] = "/usr/spool/mail";
  42. char mailqdir[] = "/usr/spool/mqueue";
  43. char mailqueue[] = "/usr/spool/mqueue/*.wrk";
  44. char routeqdir[] = "/spool/rqueue";        /* queue for router */
  45. #endif
  46.  
  47. #ifdef    AMIGA
  48. char startup[] = "TCPIP:net.start";
  49. char config[] = "TCPIP:config.net";    /* Device configuration list */
  50. char userfile[] = "TCPIP:ftpusers";
  51. char hosts[] = "TCPIP:hosts.net";
  52. char mailspool[] = "TCPIP:spool/mail";
  53. char mailqdir[] = "TCPIP:spool/mqueue";
  54. char mailqueue[] = "TCPIP:spool/mqueue/*.wrk";
  55. char routeqdir[] = "TCPIP:spool/rqueue";        /* queue for router */
  56. #endif
  57.  
  58. #ifdef    MAC
  59. char startup[] ="This line will be overwritten by the mac stuff.  MAX LINE";
  60. char config[] = "This line will be overwritten by the mac stuff.  MAX LINE";
  61. char userfile[] = "This line will be overwritten by the mac stuff.  MAX LINE";
  62. char hosts[] = "This line will be overwritten by the mac stuff.  MAX LINE";
  63. char mailspool[] = "This line will be overwritten by the mac stuff.  MAX LINE";
  64. char mailqdir[] = "This line will be overwritten by the mac stuff.  MAX LINE";
  65. char mailqueue[] = "This line will be overwritten by the mac stuff.  MAX LINE";
  66. char baddir[] = "This line will be overwritten by the mac stuff.  MAX LINE";
  67. char bmrc[] = "This line will be overwritten by the mac stuff.  MAX LINE";    /* mail startup */
  68. char routeqdir[] = "This line will be overwritten by the mac stuff.  MAX LINE";    /* mail startup */
  69. #endif
  70.